package com.hzjy.api.service.impl;

import com.hzjy.api.beans.HzjyDelistingSucc;
import com.hzjy.api.mapper.HzjyDelistingSuccMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 摘牌成功榜单Service业务层处理
 *
 * @author hzjy
 * @date 2020-08-26
 */
@Service
public class HzjyDelistingSuccServiceImpl {
    @Autowired
    private HzjyDelistingSuccMapper hzjyDelistingSuccMapper;

    /**
     * 查询摘牌成功榜单
     *
     * @param id 摘牌成功榜单ID
     * @return 摘牌成功榜单
     */
    public HzjyDelistingSucc selectHzjyDelistingSuccById(Long id) {
        return hzjyDelistingSuccMapper.selectHzjyDelistingSuccById(id);
    }

    /**
     * 查询摘牌成功榜单列表
     *
     * @param hzjyDelistingSucc 摘牌成功榜单
     * @return 摘牌成功榜单
     */
    public List<HzjyDelistingSucc> selectHzjyDelistingSuccList(HzjyDelistingSucc hzjyDelistingSucc) {
        return hzjyDelistingSuccMapper.selectHzjyDelistingSuccList(hzjyDelistingSucc);
    }

    /**
     * 新增摘牌成功榜单
     *
     * @param hzjyDelistingSucc 摘牌成功榜单
     * @return 结果
     */
    public int insertHzjyDelistingSucc(HzjyDelistingSucc hzjyDelistingSucc) {
        return hzjyDelistingSuccMapper.insertHzjyDelistingSucc(hzjyDelistingSucc);
    }

    /**
     * 修改摘牌成功榜单
     *
     * @param hzjyDelistingSucc 摘牌成功榜单
     * @return 结果
     */
    public int updateHzjyDelistingSucc(HzjyDelistingSucc hzjyDelistingSucc) {
        return hzjyDelistingSuccMapper.updateHzjyDelistingSucc(hzjyDelistingSucc);
    }

    /**
     * 批量删除摘牌成功榜单
     *
     * @param ids 需要删除的摘牌成功榜单ID
     * @return 结果
     */
    public int deleteHzjyDelistingSuccByIds(Long[] ids) {
        return hzjyDelistingSuccMapper.deleteHzjyDelistingSuccByIds(ids);
    }

    /**
     * 删除摘牌成功榜单信息
     *
     * @param id 摘牌成功榜单ID
     * @return 结果
     */
    public int deleteHzjyDelistingSuccById(Long id) {
        return hzjyDelistingSuccMapper.deleteHzjyDelistingSuccById(id);
    }
}
